<template>
	<view>
		<view class="box">
			<navigator url="/pages/my/setUp/editPayPwd" >
			<view class="info-item" >
				<view class="text">资金密码</view>
				<view class="select-box">
					修改资金密码
				</view>
				<!-- <view class="select-box"  @click="selectType"><text :style="subType==''?'color:gray':''">{{subType==''?"请选择":subType}}</text></view> -->
			</view>
			</navigator>
		<!-- 	<view class="info-item">
				<view class="text">登录密码</view>
				<view class="select-box">
					修改登录密码
				</view>
			</view> -->
	<!-- 		<view class="info-item">
				<view class="text" @click="toThisStarcity">关于我们</view>
				<view class="select-box">
					
				</view>
			</view> -->
	
			<navigator url="/pages/agreement/userAgreement" >
			<view class="info-item" @click="toTerms" >
				<view class="text">用户协议</view>
				<view class="select-box">
					
				</view>
			</view>
			</navigator>
			<view class="info-item" @click="goPhoneBtn('13142208403')">
				<view class="text">联系客服</view>
				<view class="select-box">
					
				</view>
			</view>
			<view class="info-item">
				<view class="text">当前版本</view>
				
				<view class="select-box1">
					{{version}}
					1.2.6
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				version:"1.0.0"
			}
		},
		onLoad(){
			const appInfo = wx.getAccountInfoSync();
			this.version = appInfo.miniProgram.version;
		},
		methods: {
			toTerms(){ 
				this.$mRouter.push({
					route: this.$mRoutesConfig.terms
				});
			},
			toThisStarcity(){ 
				this.$mRouter.push({
					route: this.$mRoutesConfig.thisStarcity
				});
			},
			goPhoneBtn(val) {
				uni.makePhoneCall({
					// 手机号
					phoneNumber: val,
					// 成功回调
					success: (res) => {
					},
					// 失败回调
					fail: (res) => {
					}
				});
			}
		}
	}
</script>

<style lang="scss">
.info-item{
		display: flex;
		border-bottom: 1px solid #eee;
		margin:0upx 25upx;
		padding: 20rpx 0;
		.text{
			text-align-last:justify;
			font-size: 28upx;
			flex:1;
			text-align: center;
			line-height: 76upx;
			font-weight: bold;
		}
		.select-box1{
			flex: 4;
			background-repeat: no-repeat;
			//background-position: 95% 50%;
			background-size: 30upx 40upx;
			text-align: right;
			color:#999;
			padding-right:65upx;
			font-size: 35upx;
			line-height: 76upx;
			
		}
		.select-box{
			flex: 4;
			background-image: url("https://cmtq-1317574530.cos.ap-guangzhou.myqcloud.com/img2023/img/right2.png");
			background-repeat: no-repeat;
			background-position: 95% 50%;
			background-size: 30upx 40upx;
			text-align: right;
			color:#999;
			padding-right:65upx;
			font-size: 28upx;
			line-height: 76upx;
			
		}
		i-input{
			flex: 4;
		}
		.space{
			flex: 4;
		}
	}
</style>
